//获取应用实例
const app = getApp();
// 引入AES.js
var baseJs = require("../../common/base.js");
Page({

  /**
   * 页面的初始数据
   */
  data: {
    modalFlag: true,
    // 
    uid:"",
    userType:""

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    this.setData({
      uid: wx.getStorageSync('uid'),
      userType: wx.getStorageSync('userType')
    })
  },
  // 
  makerTap: function() {
    this.setData({
      modalFlag: false,
    })
  },
  // 
  modalConfirm: function() {
    this.setData({
      modalFlag: true,
    })
  },
  // 进入创客中心
  makerDetailTap:function(){
    var that= this;
    var userType = this.data.userType;
    if (userType == 0){
      wx.navigateTo({
        url: '/packageA/makerControl/makerControl',
      })
    }else{
      wx.navigateTo({
        url: '/packageA/makerDetail/makerDetail',
      })
    }

  },
  // 
})